<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class CompanyContactsMessageSubmitRequest extends BasicRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'uid'		=> 'required',
            'type'		=> 'required|numeric',
			'content'	=> 'required',
        ];
    }
    
    public function messages(){
    	return [
    		'uid.required'		=> '未选择收信人',
    		'type.required'		=> '请选择消息发送类型',
    		'type.numeric'		=> '类型格式有误',
    		'content.required'	=> '请填写消息内容',
		];
	}
}
